/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.mleiria.bo.crypto;

import java.util.Map;
import javax.ejb.Stateless;
import pt.mleiria.utils.AlphabetFreq;
import pt.mleiria.utils.MathUtils;

/**
 *
 * @author manuel
 */
@Stateless
public class CryptoEJB {
    
    public Map<Object, Number> getEnglishFreq(){
        return AlphabetFreq.EnglishFreq;
    }
    
    public String[] getAlphabetLetters(){
        return AlphabetFreq.alphabetLetters;
    }
    
    public Double getEnglishFreqMaxValue(){
        return AlphabetFreq.max;
    }
    
    public String fromHexToString(final String hexStr){
        return MathUtils.HexaStringToChar(hexStr);
    }
    
    public Map<Object, Number> getQFreq(final String cipherText){
        return null;
    }
    
}
